{% extends "admin/change_form.html" %}

{% block object-tools-items %}
  {% if has_listed_versions %}
  <li>
    <a href="{{ external_site_url }}{% url 'reviewers.review' 'listed' object_id %}">
      Reviewer Tools (listed)
    </a>
  </li>
  {% endif %}

  {% if has_unlisted_versions %}
  <li>
    <a href="{{ external_site_url }}{% url 'reviewers.review' 'unlisted' object_id %}">
      Reviewer Tools (unlisted)
    </a>
  </li>
  {% endif %}

  {{ block.super }}
{% endblock %}

{% block submit_buttons_bottom %}
    {{ block.super }}
    <div class="submit-row">
        <div class="align-left">
            {% comment %}
              Add custom buttons for the actions we want on the change form.
              They have to be *after* the other submit buttons, otherwise they
              could become the default submit button of the page
            {% endcomment %}
        </div>
    </div>
{% endblock %}
